package com.qolome.knowledge.design.pattern.factory.pay;


/**
 * @author Qolome
 * @version V1.0
 * @Description 测试类
 * @date 2020年 02月28日 02:32:47
 */
public class Test {

    public static void main(String[] args) {

        //阿里支付
        IPayFactory  aliPayFactory = new AliPayFactory();
        aliPayFactory.createCorePay().createOrder();
        aliPayFactory.createNetRoute().createConnection();
        aliPayFactory.notice().subscription();

        //微信支付

        IPayFactory  wxPayFactor = new WxPayFactory();
        wxPayFactor.createCorePay().createOrder();
        wxPayFactor.createNetRoute().createConnection();
        wxPayFactor.notice().subscription();

        //易贝支付
        IPayFactory epayFactory = new EpayFactory();
        epayFactory.createCorePay().createOrder();
        epayFactory.createNetRoute().createConnection();
        epayFactory.notice().subscription();

        //贝宝支付
        IPayFactory paypalFactory = new PaypalFactory();
        paypalFactory.createCorePay().createOrder();
        paypalFactory.createNetRoute().createConnection();
        paypalFactory.notice().subscription();





    }
}
